{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
	<form class="layui-form p-4">
		<h3 class="pb-3">编辑收益明细</h3>
		<table class="layui-table layui-table-form">
			<tr><td class="layui-td-gray-2">管理员类型:1售酒端 2售酒机管理员 3补酒员<font>*</font></td>
			<td><input type="text" name="user_type"  lay-verify="required" lay-reqText="请完善管理员类型:1售酒端 2售酒机管理员 3补酒员" value="{$detail.user_type}" autocomplete="off" placeholder="请输入管理员类型:1售酒端 2售酒机管理员 3补酒员" class="layui-input"></td><td class="layui-td-gray-2">用户ID<font>*</font></td>
			<td><input type="text" name="uid"  lay-verify="required" lay-reqText="请完善用户ID" value="{$detail.uid}" autocomplete="off" placeholder="请输入用户ID" class="layui-input"></td><td class="layui-td-gray-2">说明<font>*</font></td>
			<td><input type="text" name="title"  lay-verify="required" lay-reqText="请完善说明" value="{$detail.title}" autocomplete="off" placeholder="请输入说明" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">类型:1增加,2减少<font>*</font></td>
			<td><input type="text" name="type"  lay-verify="required" lay-reqText="请完善类型:1增加,2减少" value="{$detail.type}" autocomplete="off" placeholder="请输入类型:1增加,2减少" class="layui-input"></td><td class="layui-td-gray-2">数量<font>*</font></td>
			<td><input type="text" name="num"  lay-verify="required" lay-reqText="请完善数量" value="{$detail.num}" autocomplete="off" placeholder="请输入数量" class="layui-input"></td><td class="layui-td-gray-2">订单ID<font>*</font></td>
			<td><input type="text" name="order_id"  lay-verify="required" lay-reqText="请完善订单ID" value="{$detail.order_id}" autocomplete="off" placeholder="请输入订单ID" class="layui-input"></td>
		</tr>
				<tr><td class="layui-td-gray-2">订单号<font>*</font></td>
			<td><input type="text" name="order_no"  lay-verify="required" lay-reqText="请完善订单号" value="{$detail.order_no}" autocomplete="off" placeholder="请输入订单号" class="layui-input"></td><td class="layui-td-gray-2">状态: 0待结算 1已结算 2已失效<font>*</font></td>
			<td><input type="text" name="status"  lay-verify="required" lay-reqText="请完善状态: 0待结算 1已结算 2已失效" value="{$detail.status}" autocomplete="off" placeholder="请输入状态: 0待结算 1已结算 2已失效" class="layui-input"></td><td class="layui-td-gray-2">记录时间<font>*</font></td>
			<td><input type="text" name="create_time"  lay-verify="required" lay-reqText="请完善记录时间" value="{$detail.create_time}" autocomplete="off" placeholder="请输入记录时间" class="layui-input"></td>
		</tr>
				
		</table>
		<div class="py-3">
			<input type="hidden" name="id" value="{$detail.id}"/>
			<button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="webform">立即提交</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</form>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
	<script>
		var moduleInit = ['tool'];

			function gouguInit() {
			var form = layui.form, tool = layui.tool;
			var layer = layui.layer;
			var element = layui.element;
			
			
			
			//监听提交
			form.on('submit(webform)', function (data) {
			
			let callback = function (e) {
			layer.msg(e.msg);
			if (e.code == 0) {
			tool.sideClose(1000);
		}
		}
			tool.post("/admin/wallet_log/edit", data.field, callback);
			return false;
		});
		}
	</script>
{/block}
<!-- /脚本 -->